//
//  ChatCustom.m
//  BGM
//
//  Created by 我要变好看 on 2018/12/26.
//  Copyright © 2018 com.alirtc.demo. All rights reserved.
//

#import "ChatCustom.h"

@implementation ChatCustom

- (NSString *)encodeAttachment
{

    
    NSDictionary *dic = @{@"messageId":self.messageId,@"helpUsersId":self.helpUsersId,@"connectionUserId":self.connectionUserId,@"pushType":self.pushType,@"pushTxt":self.pushTxt,@"pushTitle":self.pushTitle};
    NSDictionary *dict = @{@"data":dic,@"type":@"7"};
    NSData *data = [NSJSONSerialization dataWithJSONObject:dict options:0 error:nil];
    NSString *encodeString = @"";
    if (data) {
        encodeString = [[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
    }
    return encodeString;
}

//- (NSString *)dic{
//    if (!_dic) {
//        _dic = @"";
//    }
//    return _dic;
//}


-(NSString *)messageId{
    if (!_messageId) {
        _messageId = @"";
    }
    return _messageId;
}
-(NSString *)helpUsersId{
    if (!_helpUsersId) {
        _helpUsersId = @"";
    }
    return _helpUsersId;
}
- (NSString *)connectionUserId{
    if (!_connectionUserId) {
        _connectionUserId = @"";
    }
    return _connectionUserId;
}

- (NSString *)pushTitle{
    if (!_pushTitle) {
        _pushTitle = @"";
    }
    return _pushTitle;
}
- (NSString *)pushTxt{
    if (!_pushTxt) {
        _pushTxt = @"";
    }
    return _pushTxt;
}
- (NSString *)pushType{
    if (!_pushType) {
        _pushType = @"";
    }
    return _pushType;
}

@end
